home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / glibc-1.09 / glibc-1 / glibc-1.09.1 / sysdeps / unix / bsd / ultrix4 / mips / sigcontext.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-18  |  1.8 KB  |  61 lines

  1. /* Copyright (C) 1992 Free Software Foundation, Inc.
  2.    Contributed by Brendan Kehoe (brendan@zen.org).
  3.  
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public License as
  6. published by the Free Software Foundation; either version 2 of the
  7. License, or (at your option) any later version.
  8.  
  9. The GNU C Library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. Library General Public License for more details.
  13.  
  14. You should have received a copy of the GNU Library General Public
  15. License along with the GNU C Library; see the file COPYING.LIB.  If
  16. not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  17. Cambridge, MA 02139, USA.  */
  18.  
  19. /* Note that ANY change to this instantly implies a change to __handler.S.  */
  20.  
  21. struct sigcontext
  22.   {
  23.     /* Nonzero if running on signal stack.  */
  24.     int sc_onstack;
  25.     
  26.     /* Signal mask to restore.  */
  27.     sigset_t sc_mask;
  28.     
  29.     /* Program counter when the signal hit.  */
  30.     __ptr_t sc_pc;
  31.     
  32.     /* Registers 0 through 31.  */
  33.     int sc_regs[32];
  34.     
  35.     /* mul/div low and hi; these aren't part of a jmp_buf, but are part of the
  36.        sigcontext and are referenced from the signal trampoline code.  */
  37.     int sc_mdlo;
  38.     int sc_mdhi;
  39.     
  40.     /* Flag to see if the FP's been used.  */
  41.     int sc_ownedfp;
  42.     
  43.     /* Floating point registers 0 to 31.  */
  44.     int sc_fpregs[32];
  45.     /* Control & status register for FP.  */
  46.     int sc_fpc_csr;
  47.     
  48.     /* Exception instruction register for FP. */
  49.     int sc_fpc_eir;
  50.     
  51.     /* The coprocessor's cause register.  */
  52.     int sc_cause;
  53.     
  54.     /* CPU bad virtual address.  */
  55.     __ptr_t sc_badvaddr;
  56.     
  57.     /* CPU board bad physical address.  */
  58.     __ptr_t sc_badpaddr;
  59.   };
  60.  
  61.